args=(commandArgs(TRUE))

if(length(args)==0){
    print("No arguments supplied.")
    ##supply default values
    pic = "test.jpg"
}else{
    for(i in 1:length(args)){
         eval(parse(text=args[[i]]))
    }
}

jpeg(pic) 

source("commands.R")

dev.off() 
